package com.example.demo.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

public class Book implements Serializable {
    private String book_id;
    private String book_name;
    private String book_author;
    private String book_publisher;
    private String book_type;
    private BigDecimal book_price;
    private String book_degree;
    private String book_description;
    private String book_image;//base64
    private String seller_id;
    private String buyer_id;
    private String book_status;
    private Timestamp post_time;
    private Timestamp trade_time;
    private Timestamp accomplish_time;

    public Book() {
    }

    public Book(String book_id, String book_name, String book_author, String book_publisher, String book_type,
                BigDecimal book_price, String book_degree, String book_description, String book_image,
                String seller_id, String buyer_id, String book_status,
                Timestamp post_time, Timestamp trade_time, Timestamp accomplish_time) {
        this.book_id = book_id;
        this.book_name = book_name;
        this.book_author = book_author;
        this.book_publisher = book_publisher;
        this.book_type = book_type;
        this.book_price = book_price;
        this.book_degree = book_degree;
        this.book_description = book_description;
        this.book_image = book_image;
        this.seller_id = seller_id;
        this.buyer_id = buyer_id;
        this.book_status = book_status;
        this.post_time = post_time;
        this.trade_time = trade_time;
        this.accomplish_time = accomplish_time;
    }


    @Override
    public String toString() {
        return "Book{" +
                "book_id =" + book_id +
                ", book_name= " + book_name +
                ", book_author= " + book_author +
                ", book_publisher= " + book_publisher +
                ", book_type= " + book_type +
                ", book_price= " + book_price +
                ", book_degree= " + book_degree +
                ", book_description= " + book_description +
                ", book_image= " + book_image +
                ", seller_id= " + seller_id +
                ", buyer_id= " + buyer_id +
                ", book_status= " + book_status +
                ", post_time= " + post_time +
                ", trade_time= " + trade_time +
                ", accomplish_time= " + accomplish_time +
                '}';
    }

    public String getBook_id() {
        return book_id;
    }

    public void setBook_id(String book_id) {
        this.book_id = book_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getBook_author() {
        return book_author;
    }

    public void setBook_author(String book_author) {
        this.book_author = book_author;
    }

    public String getBook_publisher() {
        return book_publisher;
    }

    public void setBook_publisher(String book_publisher) {
        this.book_publisher = book_publisher;
    }

    public String getBook_type() {
        return book_type;
    }

    public void setBook_type(String book_type) {
        this.book_type = book_type;
    }

    public BigDecimal getBook_price() {
        return book_price;
    }

    public void setBook_price(BigDecimal book_price) {
        this.book_price = book_price;
    }

    public String getBook_degree() {
        return book_degree;
    }

    public void setBook_degree(String book_degree) {
        this.book_degree = book_degree;
    }

    public String getBook_description() {
        return book_description;
    }

    public void setBook_description(String book_description) {
        this.book_description = book_description;
    }

    public String getBook_image() {
        return book_image;
    }

    public void setBook_image(String book_image) {
        this.book_image = book_image;
    }

    public String getSeller_id() {
        return seller_id;
    }

    public void setSeller_id(String seller_id) {
        this.seller_id = seller_id;
    }

    public String getBuyer_id() {
        return buyer_id;
    }

    public void setBuyer_id(String buyer_id) {
        this.buyer_id = buyer_id;
    }

    public String getBook_status() {
        return book_status;
    }

    public void setBook_status(String book_status) {
        this.book_status = book_status;
    }

    public Timestamp getPost_time() {
        return post_time;
    }

    public void setPost_time(Timestamp post_time) {
        this.post_time = post_time;
    }

    public Timestamp getTrade_time() {
        return trade_time;
    }

    public void setTrade_time(Timestamp trade_time) {
        this.trade_time = trade_time;
    }

    public Timestamp getAccomplish_time() {
        return accomplish_time;
    }

    public void setAccomplish_time(Timestamp accomplish_time) {
        this.accomplish_time = accomplish_time;
    }
}
